<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
//
//Route::middleware('auth:api')->get('/user', function (Request $request) {
//    return $request->user();
//});
Route::group(
    ['middleware' => 'cors'], function () {

    Route::post('members', 'MemberController@store');
//检测会员状态信息
    Route::post('member/check', 'MemberController@check');

    Route::post('checkers', 'CheckerController@store');
//检测核销员信息
    Route::post('checker/check', 'CheckerController@check');
    Route::get('sections', 'SectionController@list');

//核销礼券
    Route::post('member/accept', 'MemberController@accept');

//发送短信
    Route::post('member/sendsms', 'MemberController@sendSMS');
});